#ifndef __IOPUT_H 
#define __IOPUT_H  

#include "sys.h" 
#include "delay.h"
#include "lcd.h"

#define key1 PBin(7)
#define key2 PBin(6)
#define key3 PBin(5)
#define key4 PBin(14)
#define key5 PBin(15)
#define JDQ1 PAout(11)
#define BEEP PAout(12)
#define DENG PAout(2)


//#define elock PBout(5)
//#define BEEP PAout(12)
#define JDQ2 PBout(10)
#define JDQ3 PBout(11)
//#define LED PAout(7)

extern u8 key1_flag,key2_flag,key3_flag,key4_flag,key5_flag;

void output_init(void);
void input_init(void);
void key_scan(void);
#endif

